+2008-07-06 Matthias Clasen <mclasen@redhat.com>
+
+ Bug 539248 – gtk_calender_query_tooltip calls ->detail_func with
+ invalid dates
+
+ * gtk/gtkcalendar.c (gtk_calendar_query_tooltip):
+ Check that the cursor is over a valid date before retrieving
+ its details. Patch by Chris Wilson
+
2008-07-06 Matthias Clasen <mclasen@redhat.com>
Bug 493008 – gdk_screen_get_window_stack is not 64-bit-compatible
col = calendar_column_from_x (calendar, x - x0);
row = calendar_row_from_y (calendar, y - y0);
- if (0 != (priv->detail_overflow[row] & (1 << col)) ||
- 0 == (calendar->display_flags & GTK_CALENDAR_SHOW_DETAILS))
+ if (col != -1 && row != -1 &&
+ (0 != (priv->detail_overflow[row] & (1 << col)) ||
+ 0 == (calendar->display_flags & GTK_CALENDAR_SHOW_DETAILS)))
{
detail = gtk_calendar_get_detail (calendar, row, col);
calendar_day_rectangle (calendar, row, col, &day_rect);